%% Author: gnibre
%% Created: Jul 12, 2009
%% Description: TODO: Add description to app_ifriend_server
-module(app_ifriend_server).

-behaviour(application).
%% --------------------------------------------------------------------
%% Behavioural exports
%% --------------------------------------------------------------------
-export([
	 start/0,
	 start/2,
	 stop/1
        ]).

%% --------------------------------------------------------------------
%% Internal exports
%% --------------------------------------------------------------------
-export([]).

%% --------------------------------------------------------------------
%% API Functions
%% --------------------------------------------------------------------


%% ====================================================================!
%% External functions
%% --------------------------------------------------------------------
%% Func: start/2
%% Returns: {ok, Pid}        |
%%          {ok, Pid, State} |
%%          {error, Reason}
%% --------------------------------------------------------------------
start() ->
	
    application:start(app_ifriend_server).  %% name of app_meta_server.app

start(_Type, _StartArgs) ->
    io:format("ifriend server app is starting~n"),	
%% 	net_adm:world_list([gnibreD]),
  	net_adm:ping(yawsServer@gnibreD),
    ifriend_supervisor:start_link().

stop(_State) ->	
    io:format("ifriend server app is stopping~n"),
    ok.